package com.teamall.web.family.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class FamilyReplyArg {
    private String pk_name = "REPLY_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<FamilyReplyCriteria> oredCriteria;

    public FamilyReplyArg() {
        oredCriteria = new ArrayList<FamilyReplyCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<FamilyReplyCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(FamilyReplyCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public FamilyReplyCriteria or() {
    	FamilyReplyCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public FamilyReplyCriteria createCriteria() {
    	FamilyReplyCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected FamilyReplyCriteria createCriteriaInternal() {
    	FamilyReplyCriteria criteria = new FamilyReplyCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<FamilyReplyCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<FamilyReplyCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<FamilyReplyCriterion> getAllCriteria() {
            return criteria;
        }

        public List<FamilyReplyCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new FamilyReplyCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new FamilyReplyCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new FamilyReplyCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new FamilyReplyCriterion(condition, value1, value2));
        }

        public FamilyReplyCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (FamilyReplyCriteria) this;
        }
        public FamilyReplyCriteria andReplyIdIsNull() {
            addCriterion("REPLY_ID is null");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdIsNotNull() {
            addCriterion("REPLY_ID is not null");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdEqualTo(Integer value) {
            addCriterion("REPLY_ID =", value, "REPLY_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdNotEqualTo(Integer value) {
            addCriterion("REPLY_ID <>", value, "REPLY_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdGreaterThan(Integer value) {
            addCriterion("REPLY_ID >", value, "REPLY_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("REPLY_ID >=", value, "REPLY_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdLessThan(Integer value) {
            addCriterion("REPLY_ID <", value, "REPLY_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdLessThanOrEqualTo(Integer value) {
            addCriterion("REPLY_ID <=", value, "REPLY_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdLike(Integer value) {
            addCriterion("REPLY_ID like ", value, "REPLY_ID", 1);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdNotLike(Integer value) {
            addCriterion("REPLY_ID  not like ", value, "REPLY_ID", 1);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdLeftLike(Integer value) {
            addCriterion("REPLY_ID like ", value, "REPLY_ID", 0);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdNotLeftLike(Integer value) {
            addCriterion("REPLY_ID  not like ", value, "REPLY_ID", 0);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdRightLike(Integer value) {
            addCriterion("REPLY_ID like ", value, "REPLY_ID", 2);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdNotRightLike(Integer value) {
            addCriterion("REPLY_ID  not like ", value, "REPLY_ID", 2);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdIn(List<Integer> values) {
            addCriterion("REPLY_ID  in ", values, "REPLY_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdNotIn(List<Integer> values) {
            addCriterion("REPLY_ID not in ", values, "REPLY_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdBetween(Integer value1, Integer value2) {
            addCriterion("REPLY_ID between ", value1, value2, "REPLY_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andReplyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("REPLY_ID not between ", value1, value2, "REPLY_ID");
            return (FamilyReplyCriteria) this;
        }
        public FamilyReplyCriteria andHelpIdIsNull() {
            addCriterion("HELP_ID is null");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdIsNotNull() {
            addCriterion("HELP_ID is not null");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdEqualTo(Integer value) {
            addCriterion("HELP_ID =", value, "HELP_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdNotEqualTo(Integer value) {
            addCriterion("HELP_ID <>", value, "HELP_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdGreaterThan(Integer value) {
            addCriterion("HELP_ID >", value, "HELP_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("HELP_ID >=", value, "HELP_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdLessThan(Integer value) {
            addCriterion("HELP_ID <", value, "HELP_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdLessThanOrEqualTo(Integer value) {
            addCriterion("HELP_ID <=", value, "HELP_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdLike(Integer value) {
            addCriterion("HELP_ID like ", value, "HELP_ID", 1);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdNotLike(Integer value) {
            addCriterion("HELP_ID  not like ", value, "HELP_ID", 1);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdLeftLike(Integer value) {
            addCriterion("HELP_ID like ", value, "HELP_ID", 0);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdNotLeftLike(Integer value) {
            addCriterion("HELP_ID  not like ", value, "HELP_ID", 0);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdRightLike(Integer value) {
            addCriterion("HELP_ID like ", value, "HELP_ID", 2);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdNotRightLike(Integer value) {
            addCriterion("HELP_ID  not like ", value, "HELP_ID", 2);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdIn(List<Integer> values) {
            addCriterion("HELP_ID  in ", values, "HELP_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdNotIn(List<Integer> values) {
            addCriterion("HELP_ID not in ", values, "HELP_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdBetween(Integer value1, Integer value2) {
            addCriterion("HELP_ID between ", value1, value2, "HELP_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andHelpIdNotBetween(Integer value1, Integer value2) {
            addCriterion("HELP_ID not between ", value1, value2, "HELP_ID");
            return (FamilyReplyCriteria) this;
        }
        public FamilyReplyCriteria andContentIsNull() {
            addCriterion("CONTENT is null");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentIsNotNull() {
            addCriterion("CONTENT is not null");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentEqualTo(String value) {
            addCriterion("CONTENT =", value, "CONTENT");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentNotEqualTo(String value) {
            addCriterion("CONTENT <>", value, "CONTENT");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentGreaterThan(String value) {
            addCriterion("CONTENT >", value, "CONTENT");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("CONTENT >=", value, "CONTENT");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentLessThan(String value) {
            addCriterion("CONTENT <", value, "CONTENT");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentLessThanOrEqualTo(String value) {
            addCriterion("CONTENT <=", value, "CONTENT");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentLike(String value) {
            addCriterion("CONTENT like ", value, "CONTENT", 1);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentNotLike(String value) {
            addCriterion("CONTENT  not like ", value, "CONTENT", 1);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentLeftLike(String value) {
            addCriterion("CONTENT like ", value, "CONTENT", 0);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentNotLeftLike(String value) {
            addCriterion("CONTENT  not like ", value, "CONTENT", 0);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentRightLike(String value) {
            addCriterion("CONTENT like ", value, "CONTENT", 2);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentNotRightLike(String value) {
            addCriterion("CONTENT  not like ", value, "CONTENT", 2);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentIn(List<String> values) {
            addCriterion("CONTENT  in ", values, "CONTENT");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentNotIn(List<String> values) {
            addCriterion("CONTENT not in ", values, "CONTENT");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentBetween(String value1, String value2) {
            addCriterion("CONTENT between ", value1, value2, "CONTENT");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andContentNotBetween(String value1, String value2) {
            addCriterion("CONTENT not between ", value1, value2, "CONTENT");
            return (FamilyReplyCriteria) this;
        }
        public FamilyReplyCriteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateEqualTo(Date value) {
            addCriterion("CREATE_DATE =", value, "CREATE_DATE");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateNotEqualTo(Date value) {
            addCriterion("CREATE_DATE <>", value, "CREATE_DATE");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateGreaterThan(Date value) {
            addCriterion("CREATE_DATE >", value, "CREATE_DATE");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_DATE >=", value, "CREATE_DATE");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateLessThan(Date value) {
            addCriterion("CREATE_DATE <", value, "CREATE_DATE");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_DATE <=", value, "CREATE_DATE");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateLike(Date value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 1);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateNotLike(Date value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 1);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateLeftLike(Date value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 0);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateNotLeftLike(Date value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 0);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateRightLike(Date value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 2);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateNotRightLike(Date value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 2);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateIn(List<Date> values) {
            addCriterion("CREATE_DATE  in ", values, "CREATE_DATE");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateNotIn(List<Date> values) {
            addCriterion("CREATE_DATE not in ", values, "CREATE_DATE");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("CREATE_DATE between ", value1, value2, "CREATE_DATE");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_DATE not between ", value1, value2, "CREATE_DATE");
            return (FamilyReplyCriteria) this;
        }
        public FamilyReplyCriteria andUserIdIsNull() {
            addCriterion("USER_ID is null");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdIsNotNull() {
            addCriterion("USER_ID is not null");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdEqualTo(Integer value) {
            addCriterion("USER_ID =", value, "USER_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdNotEqualTo(Integer value) {
            addCriterion("USER_ID <>", value, "USER_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdGreaterThan(Integer value) {
            addCriterion("USER_ID >", value, "USER_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("USER_ID >=", value, "USER_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdLessThan(Integer value) {
            addCriterion("USER_ID <", value, "USER_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("USER_ID <=", value, "USER_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdLike(Integer value) {
            addCriterion("USER_ID like ", value, "USER_ID", 1);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdNotLike(Integer value) {
            addCriterion("USER_ID  not like ", value, "USER_ID", 1);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdLeftLike(Integer value) {
            addCriterion("USER_ID like ", value, "USER_ID", 0);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdNotLeftLike(Integer value) {
            addCriterion("USER_ID  not like ", value, "USER_ID", 0);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdRightLike(Integer value) {
            addCriterion("USER_ID like ", value, "USER_ID", 2);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdNotRightLike(Integer value) {
            addCriterion("USER_ID  not like ", value, "USER_ID", 2);
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdIn(List<Integer> values) {
            addCriterion("USER_ID  in ", values, "USER_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdNotIn(List<Integer> values) {
            addCriterion("USER_ID not in ", values, "USER_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("USER_ID between ", value1, value2, "USER_ID");
            return (FamilyReplyCriteria) this;
        }

        public FamilyReplyCriteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("USER_ID not between ", value1, value2, "USER_ID");
            return (FamilyReplyCriteria) this;
        }

    }

    public static class FamilyReplyCriteria extends GeneratedCriteria {

        protected FamilyReplyCriteria() {
            super();
        }
    }

    public static class FamilyReplyCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected FamilyReplyCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected FamilyReplyCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected FamilyReplyCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected FamilyReplyCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected FamilyReplyCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected FamilyReplyCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}